package DBUtils;

import org.apache.commons.dbutils.DbUtils;
import org.junit.Test;

import java.sql.Connection;
import java.sql.SQLException;

public class TestDbDruid {
    @Test
    public void testDruidConn() throws Exception {
        Connection conn = DBUtils.getConnByDruid();
        System.out.println(conn);
    }
    @Test
    public void testGetConn() throws SQLException, ClassNotFoundException {
        Connection conn = DBUtils.getConn();
        System.out.println(conn);
    }
}
